/*
 * POJO for holding the where clause
 */

package com.querie.pojo;

/**
 *
 * @author a-skoshy
 */
public class WCondition {
    private String origCondition;
    private String convCondition;
    private String semanticAlias;

    /*ra = 'abcde' AND dec = 1234 or zone between 1 and 2

            t1.ra equ STR
            t2.dec equ NUM
            sone rangenum

            t3.field1 equ t4.field7
            t4.field7 equ t3.fields1

            A1 and B1
            B1 and A1 */


    public WCondition(String orig, String conv){
        this.origCondition = conv;
        this.convCondition = conv;
    }

    public String getConvCondition() {
        return convCondition;
    }

    public void setConvCondition(String convCondition) {
        this.convCondition = convCondition;
    }

    public String getOrigCondition() {
        return origCondition;
    }

    public void setOrigCondition(String origCondition) {
        this.origCondition = origCondition;
    }

    public String getSemanticAlias() {
        return semanticAlias;
    }

    public void setSemanticAlias(String semanticAlias) {
        this.semanticAlias = semanticAlias;
    }

    public String toString(){
        return "Condition:Orig" + origCondition + "|conv:" + convCondition + "\n";
    }
}
